package org.jeecg.modules.demo.crm.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.demo.crm.entity.CPaymentStatistics;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 应收 应付统计
 * @Author: jeecg-boot
 * @Date:   2025-07-03
 * @Version: V1.0
 */
public interface CPaymentStatisticsMapper extends BaseMapper<CPaymentStatistics> {

    @Select("SELECT * FROM c_payment_statistics WHERE create_time >= DATE_SUB(CURDATE(), INTERVAL 30 DAY) and project_id=#{projectId} limit 30 ")
    List<CPaymentStatistics> lineMultiData(@Param("projectId") String projectId);
}
